collision detection between rectangles in javascript

visit shbcf.ru